package com.danico.danicoproject;

import com.badlogic.gdx.Game;
import com.badlogic.gdx.assets.AssetManager;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.BitmapFont;

public class DanicoProject extends Game {
	
	public static AssetManager assets;

	@Override
	public void create() {
		loadRessources();
		setScreen(new com.danico.danicoproject.screens.LoadingScreen(this));		
	}
	
	private void loadRessources(){		
		assets = new AssetManager();
		assets.load("data/fonts/PortLligatSlab_22.fnt", BitmapFont.class);
		assets.load("data/fonts/PortLligatSlab_44.fnt", BitmapFont.class);
		assets.load("data/bouton.png", Texture.class);
		assets.load("data/background.png", Texture.class);
		assets.load("data/character.png", Texture.class);
		assets.load("data/wall.png", Texture.class);
		assets.load("data/platform.png", Texture.class);
		assets.load("data/sword.png", Texture.class);
		assets.load("data/enculord.png", Texture.class);
		assets.load("data/character_idle.png", Texture.class);
	}
	
	public void dispose() {
		assets.dispose();
	}
	
	
}
